package com.huashi.dealer.modular.business.role.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 角色参数
 *
 * @author 谭陈强
 * @since 2025-01-27
 */
@Data
@Schema(description = "角色参数")
public class StoreRoleParam {
    @Schema(description = "角色ID")
    @NotNull(message = "请选择角色")
    private Long roleId;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称", required = true)
    private String roleName;

    /**
     * 父级角色ID
     */
    @Schema(description = "父级角色ID")
    private Long parentId;

    /**
     * 排序值（数字越小越靠前）
     */
    @Schema(description = "排序值")
    private Integer sort;

    /**
     * 权限ID列表
     */
    @NotNull(message = "请选择权限")
    @Schema(description = "权限ID列表", required = true)
    private List<Long> access;
}
